package com.jyserver.common.AutoCode.jybaits.element.pc.From;

import com.jyserver.common.utils.HelpUtils;

public class Uploader {
    public static String getStyle(String label) {
        return "<el-form-item label=\"" + label + "\" :label-width=\"formLabelWidth\">\n" +
                "<myuploader v-bind:url=\"uploadlogourl\" stepContentType=\"2\" imgnu=\"6\" style=\"width: 100px;\"></myuploader>\n" +
                "</el-form-item>\n";
    }


    public static String getautomaticuploader(String label, Object prop, String key)  {
        if (HelpUtils.isNotEmpty(prop)) {
            prop = "prop=\"" + prop + "\"";
        } else {
            prop = "";
        }
        try {
            return "<el-form-item label=\""+label+"：\" :label-width=\"formLabelWidth\"  "+prop+"><el-input v-model=\"Dataform."+key+"\" v-show=\"false\" autocomplete=\"off\"></el-input><automaticuploader style=\"float: left;\" uploadkey=\""+key+"\"></automaticuploader></el-form-item>";
        } catch (Exception e) {
            e.printStackTrace();
        }
        return  "";
    }
}

